﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;

namespace BLL
{
    public class UserBLL
    {
        private UserDAL userB = new UserDAL();

        /// <summary>
        /// 登录判断用户名、密码
        /// </summary>
        /// <param name="barcode"></param>
        /// <returns></returns>
        public bool GetUserInfoByName(string name, string password, out string id)
        {
            return userB.GetUserInfoByName(name, password, out id);
        }
        /// <summary>
        ///登录判断用户名、密码
        /// </summary>
        /// <param name="name"></param>
        /// <param name="password"></param>
        /// <param name="id"></param>
        /// <returns></returns>
        public bool GetUserInfoByUserID(string UserID, out string id, out string name)
        {
            return userB.GetUserInfoByUserID(UserID, out id,out  name);
        }

        

    }
}
